import java.sql.SQLException;

import javax.jws.WebService;

@WebService(targetNamespace="http://localhost:63081/deleteProject")
public class DeleteProjectService {

	public String deleteProject(String projectID)
	{
		/*
		 * Delete entries form DB
		 */
		DAO dao = new DAO();
		try {
			dao.deleteDBEntries(projectID);
		} catch (SQLException e) {
			e.printStackTrace();
		}

		/*
		 * Delete Project itself
		 */
		ProjectContainer.getInstance().deleteProject(projectID);

		return "Project with ID '" + projectID + "' successfully deleted";
	}
}
